<template>
  <div class="loading bg-background" :class="{ 'bg-surface': surface }">
    <img src="@/assets/images/loading.gif" alt="loading" />
  </div>
</template>

<script setup>
defineProps({
  surface: {
    type: Boolean,
    default: false,
  },
})
</script>

<style lang="scss" scoped>
.loading {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  img {
    width: 100%;
    max-width: 150px;
  }
}
</style>
